<template>
	<view>
		<view class="head">
			<view class="head_left" @tap="back()">
				<image src="../../../static/wode/return.png" mode=""></image>
				<text>返回</text>
			</view>
			<view class="head_mid">
				面向对象
			</view>
			<view class="head_right">
				说明
			</view>
		</view>

		<view class="listBox">
			<view class="listItem" v-for="(item,index) in typeList" :key="index" @tap="selectType(item)">
				{{item}}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			
			return {
				typeList:[
					'幼儿',
					'青少年',
					'大学生',
					'成年'
				]
			}
		},
		methods: {
			back() { //返回
				uni.navigateBack({
					delta: 1
				})
			},
			selectType(type){
				uni.setStorageSync('peopleType',type)
				uni.navigateBack({
					delta:1
				})
			}
		}
	}
</script>

<style scoped>
	.head {
		height: 128upx;
		display: flex;
		justify-content: space-between;
		font-size: 32upx;
		padding: 0 24upx;
		background: #ffffff;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		z-index: 9999;
	}

	.head image {
		height: 36upx;
		width: 20upx;
		margin-right: 9upx;
	}

	.head_left {
		display: flex;
		align-items: center;
		color: #666666;
	}

	.head_mid {
		font-size: 36upx;
		color: #333333;
	}

	.head_right {
		color: #46CECF;
		padding-top: 66upx;
		width: 92upx;
		text-align: right;
		opacity: 0;
	}
	.listBox {
		padding-top: 168upx;
		
	}
	
	.listItem {
		background: #FFFFFF;
		height: 78upx;
		line-height: 78upx;
		/* text-align: center; */
		color: #333333;
		font-size: 28upx;
		border-bottom: 1upx solid #E6E6E6;
		/* font-weight: bold; */
		padding-left: 20upx;
	}
</style>
